package com.joysuch.wwyt.bp.service;

import com.joysuch.wwyt.bp.bean.inspect.BpInspectRecordBean;
import com.joysuch.wwyt.bp.bean.inspect.BpInspectRecordQueryBean;
import com.joysuch.wwyt.bp.entity.inspect.BpInspectRecord;
import com.joysuch.wwyt.core.common.ajax.ResultBean;
import org.springframework.data.domain.Page;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface BpInspectRecordService {

    ResultBean save(BpInspectRecordBean bean, Integer flag);

    void deleteById(Long Id);

    Page<BpInspectRecord> list(BpInspectRecordQueryBean bean, Integer flag);

    ResultBean getById(Long id);

    ResultBean exceptionHandle(Long id);

    ResultBean getPlanDetailByPlanId(Long planId);

    ResultBean repair(Long deviceId, int flag);

    ResultBean getRecordDetail(Long inspectRecordId, Long inspectPlanId, Long inspectPointId);

    ResultBean inspectExceptionQuery();

    ResultBean inspectExceptionRouteQuery();

    ResultBean inspectTodayFinish();

    ResultBean inspectTodayException();

    ResultBean inspectFinishRate();

    ResultBean inspectUserQuery();

    ResultBean inspectExceptionPoint();

    ResultBean signIn(Long pointId);

    void export(BpInspectRecordQueryBean bean, Integer flag, HttpServletRequest request, HttpServletResponse response) throws IOException;
}
